$OpenBSD: patch-deps_npm_lib_npm_js,v 1.4 2017/01/23 16:47:04 abieber Exp $
--- deps/npm/lib/npm.js.orig	Mon Dec 12 11:29:06 2016
+++ deps/npm/lib/npm.js	Mon Dec 12 11:29:39 2016
@@ -288,7 +288,7 @@
         // go ahead and spin up the registry client.
         npm.registry = new CachingRegClient(npm.config)
 
-        var umask = npm.config.get('umask')
+        var umask = npm.config.get('umask') || 0022
         npm.modes = {
           exec: parseInt('0777', 8) & (~umask),
           file: parseInt('0666', 8) & (~umask),
